import { AutoIncrementId, Code, CreateDate, Digdit, Entity, PrimaryUuid, Title, Unique, UpdateDate, } from "../utils";
import { Index } from "typeorm";


@Entity({ name: 'fj_room_type' })
@Index('FJ_ROOM_TYPE_FROM_HOTELID', ['from', 'hotel_id'])
export class FjRoomType {
    @PrimaryUuid({
        primaryKeyConstraintName: "FJ_ROOM_TYPE_ID"
    })
    id: string;
    @Digdit()
    hotel_id: number;
    @Digdit()
    room_type_id: number;
    @Title()
    name: string;
    @Title()
    name_cn: string;
    @Code()
    from: string;
    @Code({ nullable: true })
    hash: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}